package team.zero.lemon.module.workflow.service;

import org.springframework.stereotype.Service;
import team.zero.lemon.common.exception.CustomException;
import team.zero.lemon.common.service.CrudService;
import team.zero.lemon.module.workflow.dao.IWorkitemHandlerDao;
import team.zero.lemon.module.workflow.entity.WorkitemHandler;

import java.util.List;


/**
 * Created by bolin on 2016/11/16.
 */
@Service
public class WorkitemHandlerService extends CrudService<IWorkitemHandlerDao, WorkitemHandler> {
    public List<WorkitemHandler> findByWorkitemId(int workitemId) {
        try {
            return dao.findByWorkitemId(workitemId);
        } catch (Exception exc) {
            throw new CustomException(exc);
        }
    }
}
